import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入axios
import axios from 'axios'
// 引入vant组件库
import '@/plugin/vant.js'
// 导入全局样式
import '@/assets/css/global.css'
// import '@vant/touch-emulator'

// 配置默认地址
axios.defaults.baseURL = "https://fanhc.xyz/api/public/v1"

// 将axios 注册到Vue的原型对象上
Vue.prototype.$http = axios

Vue.config.productionTip = false

// 设置axios响应拦截器
axios.interceptors.response.use(function (res) {
  let data = res.data;
  return data
}, function (err) {
  console.log(err)
})


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')



